@ECHO OFF

SetLocal EnableDelayedExpansion

SET __original=%cd%
SET __local=%~dp0
SET __startTime=%DATE% %TIME%

IF %1 == "" (
	GOTO Fail
)

IF NOT EXIST %1 GOTO Fail

CD /D %1

call bootstrap.bat
b2.exe toolset=msvc-9.0
b2.exe toolset=msvc-9.0 tools\bcp


dist\bin\bcp unordered "%__local%..\3rdParty\msvc9"

CD /D "%__original%"

GOTO Done

:Fail

ECHO "Usage: CompileBoost path\to\boost"

GOTO Done

:Done
ECHO Started : %__startTime%
ECHO Ended   : %DATE% %TIME%

EndLocal
